#ifndef __tcp_tactics_h__
#define __tcp_tactics_h__ 1
#include "sys.h"
#include "cJSON.h"
typedef struct tcpTactics{
    char host[128];
    uint16_t port;
    int timeout;
    char businessTag[64];
    char kafkaTopic[64];
    TAILQ_ENTRY(tcpTactics) entry;
}tcpTactics_t;
TAILQ_HEAD(tcpTactics_head, tcpTactics);

typedef struct{
    char *taskId;
    char *version;
    char *kafka_url;
    int count;
    struct tcpTactics_head head;
    cJSON *result;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
}tcp_tactics_t;

void *do_tcp_tactics(void *arg);
#endif